Completed
Push — master ( 3f06be...7c320c )
by greg
01:42
created

config.js ➔ describe(ꞌConfigꞌ)   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 11

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 11
rs 9.4285

1 Function

Rating   Name   Duplication   Size   Complexity  
A config.js ➔ ... ➔ it(ꞌconfiguration fileꞌ) 0 5 1
1
var chai = require('chai');
2
var config = require('../src/cli').config
3
config.set({root: __dirname + '/fixtures'})
0 ignored issues
show
Compatibility introduced by
Consider using the path module for constructing paths since they are otherwise not cross-OS compatible.
Loading history...
4
5
describe('Config', function() {
6
  /**
7
   * getAbeImport
8
   * 
9
   */
10
  it('configuration file', function() {
11
    chai.assert.equal(config.localeFolder, 'locale', 'Error on config file')
12
    chai.assert.equal(config.root.substr(config.root.lastIndexOf('/') + 1), 'fixtures', 'Error on config file')
13
    chai.assert.equal(config.upload.image, 'unitimage', 'Error on config file')
14
  });
15
});
16